package com.swings.base.model.form;

import org.apache.log4j.Logger;

/**
 * <p>
 * <b>Overview:</b>
 * <p>
 * 
 * 
 * <pre>
 * Creation date: Feb 16, 2015
 * @author Amit Kshirsagar
 * @version 1.0
 * @since
 * 
 * <p><b>Modification History:</b><p>
 * 
 * 
 * </pre>
 */

public class FormModel {
	static Logger log = Logger.getLogger(FormModel.class.getName());

	private String formName = null;

	public FormModel(String formName) {
		this.formName = formName;
		formElements = new NameValuePairMap();
	}

	private NameValuePairMap formElements = null;

	public void setElement(String name, String value) {
		formElements.addNameValuePair(name, value);
	}

	public void addElementValues(String name, String value) {
		formElements.addNameValuePairValues(name, value);
	}

	public void addElement(NameValuePair nameValue) {
		formElements.addNameValuePair(nameValue);
	}
}
